package com.zxl.mytest8;

import java.lang.reflect.Method;

public class InterfaceReflectTest {
    
    public static void main(String[] args) throws Exception{
        Method method = MyInterface.class.getMethod("test", Object.class);
        Child child = new Child();
        child.str = "123";
        Object invoke = method.invoke(new MyClass(), child);
        System.out.println(invoke);
    }
}
